# -*- coding: utf-8 -*-
# @Time : 2023/11/22 15:21
# @Author : 支晓光
# @Email : 1473858993@qq.com
# @File : conftest.py
# @Project : YouGuuUII
import logging

import pytest
from common.appium_driver import AppiumDriver
from pageliaogu.pagecommon.to_first_page import ToFirstPage
from common.appium_driver import driver


@pytest.fixture(scope='session', autouse=True)
def session_fixture():
    ToFirstPage(driver).first_business()
    logging.info('appium启动driver')
    yield
    driver.quit()
